package com.gitee.huanminabc.ddd.api;

import com.gitee.huanminabc.ddd.common.constant.Application;
import com.gitee.huanminabc.ddd.dto.WorkDto;
import com.gitee.huanminabc.ddd.query.WorkQuery;
import com.gitee.huanminabc.nullchain.common.NullResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author huanmin
 * @date 2024/2/28
 */
@FeignClient(value = Application.SERVER_NAME, path = WorkFeignApi.PATH)
public interface WorkFeignApi {
    String PATH = "/work";
    //http://localhost:12345
    @PostMapping("/mybatisAndMybatisPlus")
    @ApiOperation(value = "下载Mybatis模板")
    NullResult<WorkDto> getWork(@Validated @RequestBody WorkQuery query);
}
